home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
getkey16.zip
/
TEST2.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-20
|
871b
|
34 lines
@echo off
REM This test file is an example of how you may use GETKEY
REM Notice that if you add 128 to forground or highlight
REM the characters blink.
REM The menu items control what keys are valid making the /c option
REM unnecessary.
REM Notice also how the /t switch controls the program if the
REM user fails to respond within 10 seconds.
:Start
getkey/n /d:3,15,142 /m20,7"~2. ~Editor"/m20,9"~3. ~Format"/m20,5"~1. ~AntiVirus"/m20,11"~4. ~Quit" "Choose an option "/tq,10
REM Take into consideration we have _two_ keys to choose from in each menu
if errorlevel 7 if not errorlevel 9 goto End
if errorlevel 5 if not errorlevel 7 goto Fmt
if errorlevel 3 if not errorlevel 5 goto Edit
if errorlevel 1 if not errorlevel 3 goto CPAV
:Edit
edit
goto Start
:CPAV
D:\PCTOOLS\CPAV
goto Start
:Fmt
call fmt.bat
goto Start
:End
cls